90356bd3f32b38874bdd8b30eec3f01ca0591755,inspectit.server/src/main/java/rocks/inspectit/server/dao/impl/JmxDefinitionDataIdentDaoImpl.java,JmxDefinitionDataIdentDaoImpl,findForPlatformIdent,#number#JmxDefinitionDataIdent#,55

Before Change


		query.setParameter("mBeanObjectName", jmxDefinitionDataIdentExample.getmBeanObjectName());
		query.setParameter("mBeanAttributeName", jmxDefinitionDataIdentExample.getmBeanAttributeName());

		return query.getResultList();
	}
}

After Change


		query.setParameter("platformIdentId", platformId);
		query.setParameter("mBeanObjectName", jmxDefinitionDataIdentExample.getmBeanObjectName());
		query.setParameter("mBeanAttributeName", jmxDefinitionDataIdentExample.getmBeanAttributeName());
		List<Long> resultList = query.getResultList();

		if (updateTimestamp && CollectionUtils.isNotEmpty(resultList)) {
			Query updateQuery = getEntityManager().createNamedQuery(JmxDefinitionDataIdent.UPDATE_TIMESTAMP);
			updateQuery.setParameter("ids", resultList);
			updateQuery.executeUpdate();
		}

		return resultList;
	}
}